import {deepFreeze} from "../util/objectUtil";

const IndexConstant  = {

    eventCode : {
        "CLIENT_SEND_MESSAGE" : 101, // 客户端发送聊天消息
        "CLIENT_RECEIVE_MESSAGE_SUCCESS" : 102, // 客户端接收消息确认
        "CLIENT_RECEIVE_FRIEND_APPLICATION" : 104,
        "CLIENT_RECEIVE_NEW_FRIEND_NOTIFICATION" : 105,

        "SERVER_PUSH_MESSAGE" : 201, // 服务端推送聊天消息
        "SERVER_RECEIVE_MESSAGE_SUCCESS" : 202, // 服务端确认聊天消息收到
        "SERVER_RECEIVE_MESSAGE_FAIL" : 203, // 服务端确认聊天消息收到

        "RECEIVE_NEW_APPLICATION" : 204,
        "HAS_NEW_FRIEND" : 205,
	    "MESSAGE_WITHDRAW": 206 // 消息撤回
    },

    limit : {
        "PICTURE_MAX_SIZE" : 10 * 1024 * 1024
    }

};



deepFreeze(IndexConstant);
export {IndexConstant};

